<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/8/29
 * Time: 14:36
 */

namespace app\common\model;


class CategoryArticle extends BaseModel
{
    protected $table = 'ng_category_article';
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';

    protected $hidden = ['created_at', 'updated_at'];

    public function category()
    {
        return $this->belongsTo('Category', 'category_id', 'id');
    }



}